<template>
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center kf_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub kf_fd0_0'>
                    <view class='flex flex-wrap align-center kf_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  kf_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='kf_fd0_0_c1_c0'>客服中心</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end kf_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction flex-wrap align-center justify-center benben-flex-layout">
                <image class='kf_fd1_0' mode="scaleToFill" :src='detail.kefu_background'></image>
                <text class='kf_fd1_1'>{{detail.tel}}</text>
                <view class='flex flex-wrap align-center'>
                    <text class='kf_fd1_2_c0'>工作时间</text>
                    <text class='kf_fd1_2_c1'>{{detail.time}}</text>
                </view>
                <view class='flex flex-wrap align-center kf_fd1_3'>
                    <button class='kf_fd1_3_c0' open-type="contact">在线客服</button>
                    <button class='kf_fd1_3_c1' @tap.stop="callMobile(detail.tel)">拨打电话</button>
                </view>
            </view>

            <!---flex布局flex布局结束-->


        </view>
    </page-body>
</template>
<script>
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},


        data() {
            return {
                "detail": {
                    "kefu_background": "",
                    "tel": "",
                    "time": ""
                }
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {

        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.gethk673ead3a1831Func()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
            //查询系统配置（客服背景图、客服电话，客服服务时间）
            async gethk673ead3a1831Func() {
                //请求方法
                //数据验证

                let datadetail = await this.$api.get(global.apiUrls.post6673ead3a1831, {

                });

                if (datadetail.data.code != 1) {
                    this.$message.info(datadetail.data.msg);
                    return
                }
                let infodetail = datadetail.data;
                this.detail = infodetail.data

            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: var(--benbenbgColor1);
        background-size: 100% auto;
    }

    .kf_flex_0 {
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .kf_fd0_0_c1_c0 {
        font-size: 36rpx;
        font-weight: 500;
        color: #333333;
        line-height: 50rpx;
    }

    .kf_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: #333;
    }

    .kf_fd0_0_c0 {
        width: 120rpx;
        height: 88rpx;
    }

    .kf_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
    }

    .kf_fd1_3_c1 {
        background: #FF8E21;
        border-radius: 50rpx 50rpx 50rpx 50rpx;
        width: 326rpx;
        line-height: 88rpx;
        font-size: 32rpx;
        color: #FFFFFF;
        height: 88rpx;
        font-weight: 500;
    }

    .kf_fd1_3_c0 {
        border: 1px solid #FF8E21;
        background: var(--benbenbgColor1);
        border-radius: 50rpx 50rpx 50rpx 50rpx;
        width: 327rpx;
        line-height: 88rpx;
        font-size: 32rpx;
        color: #FF8E21;
        height: 88rpx;
        font-weight: 500;
        margin: 0rpx 33rpx 0rpx 0rpx;
    }

    .kf_fd1_3 {
        margin: 243rpx 0rpx 0rpx 0rpx;
    }

    .kf_fd1_2_c1 {
        color: #666666;
        font-size: 28rpx;
        font-weight: 400;
        margin: 0rpx 0rpx 0rpx 12rpx;
    }

    .kf_fd1_2_c0 {
        color: #666666;
        font-size: 28rpx;
        font-weight: 400;
    }

    .kf_fd1_1 {
        color: #333333;
        font-size: 48rpx;
        font-weight: 500;
        margin: 40rpx 0rpx 24rpx 0rpx;
    }

    .kf_fd1_0 {
        width: 686rpx;
        height: 386rpx;
        border-radius: 0rpx 0rpx 0rpx 0rpx;
        margin: 100rpx 0rpx 0rpx 0rpx;
    }
</style>